﻿using System.Collections.Generic;
using BestCode.Creds.Data.MapHelper;
using BestCode.Creds.Entities;
using NHibernate.Criterion;

namespace BestCode.Creds.Data
{
    public class LayoutDao : DaoBase<Layout>, ILayoutDao
    {
        public IList<Layout> GetByFilter(string filter)
        {
            return Session.QueryOver<Layout>().Where(p => p.FieldName.IsLike(filter + "%")).List();
        }
    }
}
